package com.ruoyi.backend.domain.orderManagement;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.backend.domain.Member;
import com.ruoyi.backend.domain.ServiceItem;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 评价管理对象 service_review
 *
 * @author 王冰冰
 * @date 2025-03-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ServiceReview extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 服务评价ID
     */
    private Long reviewId;

    /**
     * 评价时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date reviewTime;

    /**
     * 评价内容
     */
    @Excel(name = "评价内容")
    private String content;

    /**
     * 评价图片
     */
    @Excel(name = "评价图片")
    private String images;

    /**
     * 评价等级
     */
    @Excel(name = "评价等级")
    private BigDecimal rating;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    private Long orderId;

    /**
     * 扩展字段1
     */
    private String ext1;

    /**
     * 扩展字段2
     */
    private String ext2;

    /**
     * 扩展字段3
     */
    private String ext3;

    /**
     * 扩展字段4
     */
    private String ext4;

    /**
     * 扩展字段5
     */
    private String ext5;

    /**
     * 评价开始时间 筛选用
     */
    private String beginReviewTime;

    /**
     * 评价结束时间 筛选用
     */
    private String endReviewTime;

    /**
     * 关联服务项目
     */
    private List<ServiceItem> serviceItem;

    /**
     * 关联会员
     */
    private Member member;

    /**
     * 服务内容 筛选用
     */
    private String serviceName;
}